package com.woniuxy.contractsign.service;

import com.woniuxy.commons.entity.ContractSign;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author author
 * @create 2021-11-10 11:24
 */
public interface ContractSignService {

    //添加合同
    void addContractSign(ContractSign contractSign);
    //根据id删除合同
    void delectContractSignByid(int consignid);
    //修改合同信息
    void updateContractSign(@Param("contractSign") ContractSign contractSign);
    //通过id查询合同
    void selectContractSignByconsignid(Integer consignid);
    //查询所有合同
    List<ContractSign> selectAllContractSignByPage(
            @Param("contractSign") ContractSign contractSign,
            @Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize);

    //合同分页的总数量
    int selectContractCountSignByPage(@Param("contractSign") ContractSign contractSign);

}
